package com.example.hospital.db.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * @TableName doctor
 */
@TableName(value = "doctor")
@Data
public class DoctorEntity implements Serializable {
  @TableId(type = IdType.AUTO)
  private Integer id;
  
  private String name;
  
  private String pid;
  
  private String uuid;
  
  private String sex;
  
  private String photo;
  
  private String birthday;
  
  private String school;
  
  private String degree;
  
  private String tel;
  
  private String address;
  
  private String email;
  
  private String job;
  
  private String remark;
  
  private String description;
  
  private String hiredate;
  
  private String tag;
  
  private Integer recommended;
  
  private Integer status;
  
  @TableField(value = "create_time", fill = FieldFill.INSERT)
  private String createTime;
  
  @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
  private String updateTime;
  
  @TableLogic(value = "0", delval = "1")     // 0未删除，1删除
  @TableField(value = "del", fill = FieldFill.INSERT)
  private Integer del;
  
  private static final long serialVersionUID = 1L;
}